# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kwin-effect-xrdesktop
pkgver=0.15.1
pkgrel=1
pkgdesc="xrdesktop effect for KWin"
url="https://gitlab.freedesktop.org/xrdesktop/kwin-effect-xrdesktop"
# armhf blocked by extra-cmake-modules
# s390x, ppc64le and riscv64 blocked by polkit -> kxmlgui
arch="all !s390x !ppc64le !armhf !riscv64"
license="MIT"
makedepends="
	extra-cmake-modules
	graphene-dev
	kconfigwidgets-dev
	kglobalaccel-dev
	ki18n-dev
	kservice-dev
	kwin-dev
	kxmlgui-dev
	libinputsynth-dev
	qt5-qtbase-dev
	xrdesktop-dev
	"
source="https://gitlab.freedesktop.org/xrdesktop/kwin-effect-xrdesktop/-/archive/$pkgver/kwin-effect-xrdesktop-$pkgver.tar.gz
	0001-support-kwin-5.20.90.patch
	fix-build.patch
	"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
565650e4b17e5419518147a6e6cc8e388b2b6bb8f375d9386c0cab3dde317250fbb10af8719782aee5b02d11ccb9ca42541ea4e0e73d53564e16a20a77fcaa05  kwin-effect-xrdesktop-0.15.1.tar.gz
3492284bc92896451c4e543e46ceed09e1a7b16ab982bc2ba08e956d078b14b8200af7a4560ae7e920e55550daa38b3a95f7415d77efff3f92d2b8d7adaabe33  0001-support-kwin-5.20.90.patch
d7bbf5777576d285d462c0730bc68fe04307770dd2bb1733a105f1251a752b43da8f6defb8fbb026352bd98139d628183ab3ed7a0089d02a93cbb4fb8f7c98c8  fix-build.patch
"
